import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '属性名称',
    dataIndex: 'code_dictText',
    width: 120,
  },
  // {
  //   title: '生长周期',
  //   dataIndex: 'growthcycleId',
  //   width: 120,
  // },
  {
    title: '图片',
    dataIndex: 'pic',
    width: 120,
    slots: { customRender: 'img' },
  },
  {
    title: '单位',
    dataIndex: 'unit',
    width: 80,
  },
  {
    title: '值',
    dataIndex: 'value',
    width: 120,
  }
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'code',
    label: '属性名称',
    labelWidth: 80,
    component: 'JTreeSelect',
    componentProps: {
      dict: "t_classification,name,id",
      pidField: "pid",
      pidValue: "1861668518137614337",
      hasChildField: 'false'
    },
    colProps: { span: 6 },
  },
  {
    field: 'unit',
    label: '单位',
    component: 'Input',
    colProps: { span: 6 },
  },
];
